#include <stdio.h>

int main(void)
{
	char c;
	int capital_cnt, lowercase_cnt, digital_cnt;

	capital_cnt = lowercase_cnt = digital_cnt = 0;
	while (1) {
		scanf("%c", &c);
		/*
		   \转义字符
		   \n 换行
		   \r 回到行首 
			\b 退格
			\\ 表示\本身
		 */
		if ('\n' == c)
			break;
		if (c >= 'A' && c <= 'Z')
			capital_cnt++;
		else if (c >= 'a' && c <= 'z')
			lowercase_cnt++;
		else if (c >= '0' && c <= '9')
			digital_cnt++;
	}

	printf("大写字母:%d, 小写字母:%d, 数字字符:%d\n", \
			capital_cnt, lowercase_cnt, digital_cnt);

	return 0;
}

